{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"className\", \"percent\", \"prefixCls\", \"strokeColor\", \"strokeLinecap\", \"strokeWidth\", \"style\", \"trailColor\", \"trailWidth\", \"transition\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useTransitionDuration, defaultProps } from './common';\nvar Line = function Line(_ref) {\n  var className = _ref.className,\n    percent = _ref.percent,\n    prefixCls = _ref.prefixCls,\n    strokeColor = _ref.strokeColor,\n    strokeLinecap = _ref.strokeLinecap,\n    strokeWidth = _ref.strokeWidth,\n    style = _ref.style,\n    trailColor = _ref.trailColor,\n    trailWidth = _ref.trailWidth,\n    transition = _ref.transition,\n    restProps = _objectWithoutProperties(_ref, _excluded);\n  // eslint-disable-next-line no-param-reassign\n  delete restProps.gapPosition;\n  var percentList = Array.isArray(percent) ? percent : [percent];\n  var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor];\n  var paths = useTransitionDuration();\n  var center = strokeWidth / 2;\n  var right = 100 - strokeWidth / 2;\n  var pathString = \"M \".concat(strokeLinecap === 'round' ? center : 0, \",\").concat(center, \"\\n         L \").concat(strokeLinecap === 'round' ? right : 100, \",\").concat(center);\n  var viewBoxString = \"0 0 100 \".concat(strokeWidth);\n  var stackPtg = 0;\n  return /*#__PURE__*/React.createElement(\"svg\", _extends({\n    className: classNames(\"\".concat(prefixCls, \"-line\"), className),\n    viewBox: viewBoxString,\n    preserveAspectRatio: \"none\",\n    style: style\n  }, restProps), /*#__PURE__*/React.createElement(\"path\", {\n    className: \"\".concat(prefixCls, \"-line-trail\"),\n    d: pathString,\n    strokeLinecap: strokeLinecap,\n    stroke: trailColor,\n    strokeWidth: trailWidth || strokeWidth,\n    fillOpacity: \"0\"\n  }), percentList.map(function (ptg, index) {\n    var dashPercent = 1;\n    switch (strokeLinecap) {\n      case 'round':\n        dashPercent = 1 - strokeWidth / 100;\n        break;\n      case 'square':\n        dashPercent = 1 - strokeWidth / 2 / 100;\n        break;\n      default:\n        dashPercent = 1;\n        break;\n    }\n    var pathStyle = {\n      strokeDasharray: \"\".concat(ptg * dashPercent, \"px, 100px\"),\n      strokeDashoffset: \"-\".concat(stackPtg, \"px\"),\n      transition: transition || 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear'\n    };\n    var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];\n    stackPtg += ptg;\n    return /*#__PURE__*/React.createElement(\"path\", {\n      key: index,\n      className: \"\".concat(prefixCls, \"-line-path\"),\n      d: pathString,\n      strokeLinecap: strokeLinecap,\n      stroke: color,\n      strokeWidth: strokeWidth,\n      fillOpacity: \"0\",\n      ref: function ref(elem) {\n        // https://reactjs.org/docs/refs-and-the-dom.html#callback-refs\n        // React will call the ref callback with the DOM element when the component mounts,\n        // and call it with `null` when it unmounts.\n        // Refs are guaranteed to be up-to-date before componentDidMount or componentDidUpdate fires.\n        paths[index] = elem;\n      },\n      style: pathStyle\n    });\n  }));\n};\nLine.defaultProps = defaultProps;\nLine.displayName = 'Line';\nexport default Line;","map":{"version":3,"names":["_extends","_objectWithoutProperties","_excluded","React","classNames","useTransitionDuration","defaultProps","Line","_ref","className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition","restProps","gapPosition","percentList","Array","isArray","strokeColorList","paths","center","right","pathString","concat","viewBoxString","stackPtg","createElement","viewBox","preserveAspectRatio","d","stroke","fillOpacity","map","ptg","index","dashPercent","pathStyle","strokeDasharray","strokeDashoffset","color","length","key","ref","elem","displayName"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/rc-progress/es/Line.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"className\", \"percent\", \"prefixCls\", \"strokeColor\", \"strokeLinecap\", \"strokeWidth\", \"style\", \"trailColor\", \"trailWidth\", \"transition\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useTransitionDuration, defaultProps } from './common';\nvar Line = function Line(_ref) {\n  var className = _ref.className,\n    percent = _ref.percent,\n    prefixCls = _ref.prefixCls,\n    strokeColor = _ref.strokeColor,\n    strokeLinecap = _ref.strokeLinecap,\n    strokeWidth = _ref.strokeWidth,\n    style = _ref.style,\n    trailColor = _ref.trailColor,\n    trailWidth = _ref.trailWidth,\n    transition = _ref.transition,\n    restProps = _objectWithoutProperties(_ref, _excluded);\n  // eslint-disable-next-line no-param-reassign\n  delete restProps.gapPosition;\n  var percentList = Array.isArray(percent) ? percent : [percent];\n  var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor];\n  var paths = useTransitionDuration();\n  var center = strokeWidth / 2;\n  var right = 100 - strokeWidth / 2;\n  var pathString = \"M \".concat(strokeLinecap === 'round' ? center : 0, \",\").concat(center, \"\\n         L \").concat(strokeLinecap === 'round' ? right : 100, \",\").concat(center);\n  var viewBoxString = \"0 0 100 \".concat(strokeWidth);\n  var stackPtg = 0;\n  return /*#__PURE__*/React.createElement(\"svg\", _extends({\n    className: classNames(\"\".concat(prefixCls, \"-line\"), className),\n    viewBox: viewBoxString,\n    preserveAspectRatio: \"none\",\n    style: style\n  }, restProps), /*#__PURE__*/React.createElement(\"path\", {\n    className: \"\".concat(prefixCls, \"-line-trail\"),\n    d: pathString,\n    strokeLinecap: strokeLinecap,\n    stroke: trailColor,\n    strokeWidth: trailWidth || strokeWidth,\n    fillOpacity: \"0\"\n  }), percentList.map(function (ptg, index) {\n    var dashPercent = 1;\n    switch (strokeLinecap) {\n      case 'round':\n        dashPercent = 1 - strokeWidth / 100;\n        break;\n      case 'square':\n        dashPercent = 1 - strokeWidth / 2 / 100;\n        break;\n      default:\n        dashPercent = 1;\n        break;\n    }\n    var pathStyle = {\n      strokeDasharray: \"\".concat(ptg * dashPercent, \"px, 100px\"),\n      strokeDashoffset: \"-\".concat(stackPtg, \"px\"),\n      transition: transition || 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear'\n    };\n    var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];\n    stackPtg += ptg;\n    return /*#__PURE__*/React.createElement(\"path\", {\n      key: index,\n      className: \"\".concat(prefixCls, \"-line-path\"),\n      d: pathString,\n      strokeLinecap: strokeLinecap,\n      stroke: color,\n      strokeWidth: strokeWidth,\n      fillOpacity: \"0\",\n      ref: function ref(elem) {\n        // https://reactjs.org/docs/refs-and-the-dom.html#callback-refs\n        // React will call the ref callback with the DOM element when the component mounts,\n        // and call it with `null` when it unmounts.\n        // Refs are guaranteed to be up-to-date before componentDidMount or componentDidUpdate fires.\n        paths[index] = elem;\n      },\n      style: pathStyle\n    });\n  }));\n};\nLine.defaultProps = defaultProps;\nLine.displayName = 'Line';\nexport default Line;"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,wBAAwB,MAAM,oDAAoD;AACzF,IAAIC,SAAS,GAAG,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC;AACvJ,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,qBAAqB,EAAEC,YAAY,QAAQ,UAAU;AAC9D,IAAIC,IAAI,GAAG,SAASA,IAAI,CAACC,IAAI,EAAE;EAC7B,IAAIC,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC5BC,OAAO,GAAGF,IAAI,CAACE,OAAO;IACtBC,SAAS,GAAGH,IAAI,CAACG,SAAS;IAC1BC,WAAW,GAAGJ,IAAI,CAACI,WAAW;IAC9BC,aAAa,GAAGL,IAAI,CAACK,aAAa;IAClCC,WAAW,GAAGN,IAAI,CAACM,WAAW;IAC9BC,KA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